package com.jimmy.medical.repository;

import com.jimmy.medical.entity.Member;
import com.jimmy.medical.entity.Recharge;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RechargeRepository extends JpaSpecificationExecutor<Recharge>, PagingAndSortingRepository<Recharge, Long> {

    Recharge findFirstByMemberAndRechargeType(Member member, String rechargeType);

}
